home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000299_fdc@sesame.cc.columbia.edu_Tue Sep 23 12:02:35 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
3KB
|
53 lines
Article: 14542 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news-not-for-mail
From: fdc@sesame.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Maddening Problem with C-Kermit Script
Date: 23 Sep 2003 12:02:32 -0400
Organization: Columbia University
Lines: 36
Message-ID: <bkpqqo$i4u$1@sesame.cc.columbia.edu>
References: <b9d3cf36.0309230755.5fbff9b6@posting.google.com>
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1064332953 8701 128.59.59.56 (23 Sep 2003 16:02:33 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 23 Sep 2003 16:02:33 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14542
In article <b9d3cf36.0309230755.5fbff9b6@posting.google.com>,
Jim Chapman <jimchapman@freightliner.com> wrote:
: We've been using C-Kermit 5A(190) for years on an AIX 3.2.51 host for
: remote terminal access. All this time it's worked just fine dialing
: and connecting. Recently I thought I'd do some scripting and found
: that my scripts always failed with the error "Command file terminated
: by error." After some experimenting, I discovered that it was being
: caused by any use of the "input" or "reinput" statements with the text
: parameter. If I leave off the text parameter and include only the
: timeout parameter (which doesn't search for much), it works fine, but
: if I include the text parameter I get the error. At first, I thought
: maybe this build of 5A was just broken and had gone unnoticed all this
: time, so I downloaded version 8.0.209 and built it without errors and
: after testing discovered it fails the SAME WAY when using "input" or
: "reinput". I'm only trying to do a simple automated login script like
:
: dial \m(number)
: if fail ...etc.
: output \13
: input 5 login:
: if success...etc.
:
: If I'm overlooking something dumb, I wish somebody would be kind
: enough to point it out to me. This is making me crazy...
:
I suspect that "set take error on" (which is NOT the default) is in
effect when you run this script. This makes the command file terminate
automatically when any command in it fails. If the INPUT command does not
get the "login:" string within 5 seconds it fails, and this will give the
result you describe.
Remove the "set take error on" command from your script (or your .kermrc
file, or wherever else it is), or if you can't find it, add "set take error
off" to your script.
- Frank